﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ICM_Receive_Object.aspx.cs" Inherits="KPIS.GERP.GIMS.APP.APP_UI.Edit_Form.ICM_Receive_Object" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>รายการรับพัสดุ</title>
    <link rel="StyleSheet" href="../../Styles/StyleSheet.css" type="text/css"/>
</head>
<body>
    <form id="form1" runat="server">
    <div> 
         <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" >
         
         </asp:ScriptManager>
         
            <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            
                    <script type="text/javascript" src="../../Scripts/Common.js"></script>
                    <script type="text/javascript">
                           Sys.Application.add_load(setCalendarReceiveTable);
                           Sys.Application.add_load(setCalendarExpireTable);
                           Sys.Application.add_load(setCalendarWarrantyTable);
                           
                           function onTextChangeGeneral(sender) {
                                if (sender.get_value() == "") {
                                    sender.set_text("");
                                }
                            }
                            function GetRadWindow() 
                           {
                                var oWindow = null;
                                if (window.radWindow)
                                    oWindow = window.RadWindow; 
                                else if (window.frameElement.radWindow)
                                    oWindow = window.frameElement.radWindow; 
                                return oWindow;
                            }
                           function CloseWindow() 
                           {
                                 GetRadWindow().Close();
                           }
                            //========================= Receive Date ============================//
                            function setCalendarReceiveTable() {
                                var tooltip = $find("<%= ToolTipReceiveDate.ClientID %>");
                                var calendar = $find("<%= CalendarReceiveDate.ClientID %>");                       
                                var fastNavigation = calendar._getFastNavigation();
                                fastNavigation.OnToday =
                                function()
                                {
                                    var today = new Date;
                                    var date = [today.getFullYear(), today.getMonth()+ 1, today.getDate()];
                                    calendar.selectDate(date, true);
                                    fastNavigation.Popup.Hide();  
                                    var all_date = date.toString().split(",");
                                    var year = parseInt(all_date[0]) + 543;
                                    var month = all_date[1];
                                    var day = all_date[2];
                                    if (day.length == 1) {
                                        day = '0' + day;
                                    }
                                    if (month.length == 1) {
                                        month = '0' + month;
                                    }

                                    var maskText = $find("<%= txtReceiveDate.ClientID %>");
                                    maskText.set_value(day + month + year);
                                    tooltip.hide();
                                }
                            }
                           function OnReceiveDateClick(calendarInstance, args) {
                                var tooltip = $find("<%= ToolTipReceiveDate.ClientID %>");
                                var fastNavigation = calendarInstance._getFastNavigation();
                                var date = args.get_renderDay().get_date().toString();
                                var all_date = date.split(",");
                                var year = parseInt(all_date[0]) + 543;
                                var month = all_date[1];
                                var day = all_date[2];
                                if (day.length == 1) {
                                    day = '0' + day;
                                }
                                if (month.length == 1) {
                                    month = '0' + month;
                                }

                                var maskText = $find("<%= txtReceiveDate.ClientID %>");
                                maskText.set_value(day + month + year);
                                tooltip.hide();
                            }
                            function OnCalendarViewChanged(sender, step) {
                                var year = parseInt(sender.FocusedDate[0]) + 543;
                                var month = sender.FocusedDate[1];
                                document.getElementById("CalendarReceiveDate_Title").innerHTML = changeMonthNumberToName(month) + " " + year; 
                            } 
                            //========================= Expired Date ============================//
                            function setCalendarExpireTable() {
                                var tooltip = $find("<%= ToolTipExpireDate.ClientID %>");
                                var calendar = $find("<%= CalendarExpireDate.ClientID %>");                       
                                var fastNavigation = calendar._getFastNavigation();
                                fastNavigation.OnToday =
                                function()
                                {
                                    var today = new Date;
                                    var date = [today.getFullYear(), today.getMonth()+ 1, today.getDate()];
                                    calendar.selectDate(date, true);
                                    fastNavigation.Popup.Hide();  
                                    var all_date = date.toString().split(",");
                                    var year = parseInt(all_date[0]) + 543;
                                    var month = all_date[1];
                                    var day = all_date[2];
                                    if (day.length == 1) {
                                        day = '0' + day;
                                    }
                                    if (month.length == 1) {
                                        month = '0' + month;
                                    }

                                    var maskText = $find("<%= txtExpireDate.ClientID %>");
                                    maskText.set_value(day + month + year);
                                    tooltip.hide();
                                }
                            }
                           function OnExpireDateClick(calendarInstance, args) {
                                var tooltip = $find("<%= ToolTipExpireDate.ClientID %>");
                                var fastNavigation = calendarInstance._getFastNavigation();
                                var date = args.get_renderDay().get_date().toString();
                                var all_date = date.split(",");
                                var year = parseInt(all_date[0]) + 543;
                                var month = all_date[1];
                                var day = all_date[2];
                                if (day.length == 1) {
                                    day = '0' + day;
                                }
                                if (month.length == 1) {
                                    month = '0' + month;
                                }

                                var maskText = $find("<%= txtExpireDate.ClientID %>");
                                maskText.set_value(day + month + year);
                                tooltip.hide();
                            }
                            function OnCalendarExpireViewChanged(sender, step) {
                                var year = parseInt(sender.FocusedDate[0]) + 543;
                                var month = sender.FocusedDate[1];
                                document.getElementById("CalendarExpireDate_Title").innerHTML = changeMonthNumberToName(month) + " " + year; 
                            }
                          //========================= Warranty Date ============================//
                            function setCalendarWarrantyTable() {
                                var tooltip = $find("<%= ToolTipWarrantyStartDate.ClientID %>");
                                var calendar = $find("<%= CalendarWarrantyDate.ClientID %>");                       
                                var fastNavigation = calendar._getFastNavigation();
                                fastNavigation.OnToday =
                                function()
                                {
                                    var today = new Date;
                                    var date = [today.getFullYear(), today.getMonth()+ 1, today.getDate()];
                                    calendar.selectDate(date, true);
                                    fastNavigation.Popup.Hide();  
                                    var all_date = date.toString().split(",");
                                    var year = parseInt(all_date[0]) + 543;
                                    var month = all_date[1];
                                    var day = all_date[2];
                                    if (day.length == 1) {
                                        day = '0' + day;
                                    }
                                    if (month.length == 1) {
                                        month = '0' + month;
                                    }

                                    var maskText = $find("<%= txtWarrantyStartDate.ClientID %>");
                                    maskText.set_value(day + month + year);
                                    tooltip.hide();
                                }
                            }
                           function OnWarrantyDateClick(calendarInstance, args) {
                                var tooltip = $find("<%= ToolTipWarrantyStartDate.ClientID %>");
                                var fastNavigation = calendarInstance._getFastNavigation();
                                var date = args.get_renderDay().get_date().toString();
                                var all_date = date.split(",");
                                var year = parseInt(all_date[0]) + 543;
                                var month = all_date[1];
                                var day = all_date[2];
                                if (day.length == 1) {
                                    day = '0' + day;
                                }
                                if (month.length == 1) {
                                    month = '0' + month;
                                }

                                var maskText = $find("<%= txtWarrantyStartDate.ClientID %>");
                                maskText.set_value(day + month + year);
                                tooltip.hide();
                            }
                            function OnCalendarWarrantyViewChanged(sender, step) {
                                var year = parseInt(sender.FocusedDate[0]) + 543;
                                var month = sender.FocusedDate[1];
                                document.getElementById("CalendarWarrantyDate_Title").innerHTML = changeMonthNumberToName(month) + " " + year;
                            }
                            function selectWH(cmbWareHouse, cmbToJobSite) {
                                var WareHouse = document.getElementById(cmbWareHouse);
                                WareHouse.style.visibility = "visible";
                                var JobSite = document.getElementById(cmbToJobSite);
                                JobSite.style.visibility = "hidden";
                            }
                            function selectJS(cmbWareHouse, cmbToJobSite) {
                                var WareHouse = document.getElementById(cmbWareHouse);
                                WareHouse.style.visibility = "hidden";
                                var JobSite = document.getElementById(cmbToJobSite);
                                JobSite.style.visibility = "visible";
                            }                       
                    </script>
            </telerik:RadCodeBlock>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="Panel2">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" Skin="Vista" CssClass="multiPage" CausesValidation="false" AutoPostBack="True"> 
                <Tabs> 
                    <telerik:RadTab runat="server" Text="รับพัสดุเข้าคลัง" Selected="true">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="รายละเอียดพัสดุที่ขึ้นรหัส">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView">
                <telerik:RadPageView ID="RadPageView1" runat="server">
                <%--<div class="bigModulePaneFull">
                        <div class="bigModuleBottomPaneFull">--%>
                    <asp:Panel ID="Panel6" runat="server" ScrollBars="None" Width="945px" Visible="true">
                        <div class="bigModulePaneFull">
                            <div class="bigModuleBottomPaneFull">
                                 <table cellpadding="0" cellspacing="0">
                                    <tr class="command-list">
                                        <td >
                                            <asp:LinkButton ID="btnEdit" runat="server" CssClass="LinkButton"  visible="false" OnClick="btnEdit_Click">
                                                <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Edit.gif" />&nbsp;&nbsp;แก้ไขข้อมูล
                                            </asp:LinkButton>
                                        </td>
                                        <td class="command-item">
                                            <asp:LinkButton ID="btnSave" runat="server" CssClass="LinkButton" Visible="true" onclick="btnSave_Click">
                                                <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cmd_Save.gif" />&nbsp;&nbsp;บันทึกข้อมูล
                                            </asp:LinkButton>
                                        </td>
                                        <td class="command-item">
                                            <asp:LinkButton ID="btnCancel" runat="server" CssClass="LinkButton" Visible="true" onclick="btnCancel_Click" CausesValidation="false">
                                                <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Cancel.gif" />&nbsp;&nbsp;ยกเลิก
                                            </asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </asp:Panel> 
                          
                <div class="bigModuleFull">
                    <div class="bigModuleBottomFull">
                         <asp:Panel ID="PanelReceive" runat="server" CssClass="contentPaneDiv" Height="430px" ScrollBars="Auto">  
                                        <asp:Panel ID="panelHeaderList" runat="server">
                                                <div class="header-grid">
                                                    <asp:Label ID="lblHeaderList" runat="server" Text="รายการรับของเข้าระบบ(จัดซื้อจัดจ้าง)"></asp:Label>
                                                </div>
                                        </asp:Panel>
                                         <div class="formList-detail">
                                               <table>
                                                    <tr>
                                                        <td width="130px">
                                                             <asp:Label ID="lbDnRefNo" runat="server" CssClass="font-label" 
                                                                 Font-Bold="false" Text="อ้างอิงใบตรวจรับหมายเลข : " />
                                                             <asp:Label ID="lblReceiveType" runat="server" Visible = "false" ></asp:Label>
                                                        </td>
                                                        <td>
                                                            <telerik:RadComboBox ID="cmbDN" runat="server" 
                                                                AllowCustomText="true" EmptyMessage="< พิมพ์ที่นี้เพื่อค้นหา >" 
                                                                EnableLoadOnDemand="true" EnableVirtualScrolling="true" Height="230px" 
                                                                HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                                OnClientTextChange="onTextChangeGeneral" 
                                                                OnItemsRequested="cmbDN_ItemsRequested"                                                                         
                                                                ShowDropDownOnTextboxClick="true" 
                                                                ShowMoreResultsBox="true" 
                                                                Width="450px">
                                                                <HeaderTemplate>
                                                                    <table cellpadding="0" cellspacing="0" class="font-label">
                                                                        <tr>
                                                                            <td align="left" width="100px"><b>เลขที่ใบตรวจรับ</b></td>
                                                                            <td align="left" width="250px"><b>เรื่องตรวจรับ</b></td>      
                                                                            <td align="left" width="100px"><b>วันที่อนุมัติการตรวจรับ</b></td>                                 
                                                                        </tr>
                                                                    </table>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <asp:Table ID="tableDN" runat="server" CellPadding="0" 
                                                                        CellSpacing="0" CssClass="font-label">
                                                                    </asp:Table>
                                                                </ItemTemplate>
                                                        </telerik:RadComboBox>
                                                        </td>
                                                     </tr>
                                               </table>
                                            </div>                                        
                                            <div class="formList-detail">
                                               <table>
                                                     <tr>
                                                        <td width="130px"> 
                                                             <asp:Label CssClass="font-label" runat = "server" ID= "lblReceiveDate" Text = "วันที่หนังสือรับเข้า           : " Font-Bold ="false" />
                                                        </td>
                                                        <td>
                                                            <telerik:RadMaskedTextBox ID="txtReceiveDate" runat="server" Mask=" ##/##/####" SelectionOnFocus="SelectAll" TextWithLiterals=" //" Width="75px" >
                                                            </telerik:RadMaskedTextBox>
                                                        </td>
                                                        <td>
                                                              <asp:LinkButton ID="LinkButton1" runat="server" CssClass="LinkButton" >
                                                                    <img alt="" src="../Image/Icon/Calendar.gif" style="border:0px;vertical-align:middle;" />
                                                              </asp:LinkButton>
                                                              <telerik:RadToolTip ID="ToolTipReceiveDate" runat="server" Animation="None" HideEvent="LeaveToolTip" Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" 
                                                                    TargetControlID="LinkButton1" Modal="true">
                                                                    <telerik:RadCalendar 
                                                                        id="CalendarReceiveDate" 
                                                                        runat="server" 
                                                                        TitleFormat="MMMM yyyy"
                                                                        EnableMultiSelect="false" 
                                                                        UseRowHeadersAsSelectors="false" 
                                                                        UseColumnHeadersAsSelectors="false" 
                                                                        DayCellToolTipFormat="dddd, dd MMMM, yyyy" 
                                                                        NavigationPrevToolTip="เดือนก่อนหน้า" 
                                                                        NavigationNextToolTip="เดือนถัดไป" 
                                                                        FastNavigationNextToolTip="3 เดือนถัดไป" 
                                                                        FastNavigationPrevToolTip="3 เดือนก่อนหน้า">
                                                                        <ClientEvents 
                                                                            OnDateClick="OnReceiveDateClick" OnCalendarViewChanged="OnCalendarViewChanged">
                                                                        </ClientEvents>
                                                                        <FastNavigationSettings 
                                                                            EnableTodayButtonSelection="true" 
                                                                            TodayButtonCaption="ไปที่วันนี้" 
                                                                            OkButtonCaption="เปลี่ยน" 
                                                                            CancelButtonCaption="ยกเลิก" />
                                                                    </telerik:RadCalendar>
                                                              </telerik:RadToolTip>
                                                                &nbsp;<label id="Label2" runat="server"><font color="red">*</font></label>
                                                        </td>
                                                    </tr>
                                               </table>
                                        </div>                                       
                                        <div class="formList-detail">
                                           <table>
                                                 <tr>
                                                    <td width="130px">
                                                         <asp:Label CssClass="font-label" runat = "server" ID= "Label8" Text = "ประเภทพัสดุ   : " Font-Bold ="false" />
                                                    </td>
                                                    <td>
                                                        <telerik:RadComboBox ID="cmbInvType" runat="server" 
                                                            AllowCustomText="true" EmptyMessage="< พิมพ์ที่นี้เพื่อค้นหา >" 
                                                            EnableLoadOnDemand="true" EnableVirtualScrolling="true" Height="230px" 
                                                            HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                            OnClientTextChange="onTextChangeGeneral" 
                                                            OnItemsRequested="cmbInvType_ItemsRequested"                                                                         
                                                            ShowDropDownOnTextboxClick="true" 
                                                            ShowMoreResultsBox="true" 
                                                            Width="250px">
                                                            <HeaderTemplate>
                                                                <table cellpadding="0" cellspacing="0" class="font-label">
                                                                    <tr>
                                                                        <td align="left" width="250px"><b>ชื่อประเภทพัสดุ</b></td>                            
                                                                    </tr>
                                                                </table>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:Table ID="tableInventoryType" runat="server" CellPadding="0" 
                                                                    CellSpacing="0" CssClass="font-label">
                                                                </asp:Table>
                                                            </ItemTemplate>
                                                        </telerik:RadComboBox>
                                                    </td>
                                                 </tr>
                                           </table>
                                      </div>                                     
                                      
                                      <div class="formList-detail">
                                           <table>
                                                 <tr>
                                                    <td valign="top" width="130px">
                                                        <asp:Label CssClass="font-label" runat = "server" 
                                                            ID= "lblChooseInventoryItem" Text = "สถานที่รับเข้า           : " Font-Bold="false"/>
                                                        </td>
                                                    <td>
                                                        <asp:RadioButton ID="rdoWH" runat="server" Checked="True" GroupName="search" Text="คลังพัสดุ" />
                                                        <asp:RadioButton ID="rdoJS" runat="server" GroupName="search" Text="สำนัก/กอง" /> 
                                                        <telerik:RadComboBox ID="cmbWareHouse" runat="server" 
                                                                AllowCustomText="true" EmptyMessage="< พิมพ์ที่นี้เพื่อค้นหา >" 
                                                                EnableLoadOnDemand="true" EnableVirtualScrolling="true" Height="230px" 
                                                                HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                                OnClientTextChange="onTextChangeGeneral" 
                                                                OnItemsRequested="cmbWareHouse_ItemsRequested"                                                                         
                                                                ShowDropDownOnTextboxClick="true" 
                                                                ShowMoreResultsBox="true" 
                                                                Width="150px">
                                                                <HeaderTemplate>
                                                                    <table cellpadding="0" cellspacing="0" class="font-label">
                                                                        <tr>
                                                                            <td align="center" width="150px"><b>ชื่อคลังพัสดุ</b></td>
                                                                        </tr>
                                                                    </table>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <asp:Table ID="tableWareHouse" runat="server" CellPadding="0" 
                                                                        CellSpacing="0" CssClass="font-label">
                                                                    </asp:Table>
                                                                </ItemTemplate>
                                                        </telerik:RadComboBox>
                                                        <telerik:RadComboBox ID="cmbToJobSite" runat="server" 
                                                                Visible = "false"
                                                                AllowCustomText="true" EmptyMessage="< พิมพ์ที่นี้เพื่อค้นหา >" 
                                                                EnableLoadOnDemand="true" EnableVirtualScrolling="true" Height="230px" 
                                                                HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                                OnClientTextChange="onTextChangeGeneral" 
                                                                OnItemsRequested="cmbToJobSite_ItemsRequested"                                                                         
                                                                ShowDropDownOnTextboxClick="true" 
                                                                ShowMoreResultsBox="true"                  
                                                                Width="150px">
                                                                <HeaderTemplate>
                                                                    <table cellpadding="0" cellspacing="0" class="font-label">
                                                                        <tr>
                                                                            <td align="center" width="150px"><b>ชื่อสำนัก/กอง</b></td>
                                                                        </tr>
                                                                    </table>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <asp:Table ID="tableToJobSite" runat="server" CellPadding="0" 
                                                                        CellSpacing="0" CssClass="font-label">
                                                                    </asp:Table>
                                                                </ItemTemplate>
                                                        </telerik:RadComboBox>
                                                    </td>  
                                                 </tr>
                                           </table>
                                       </div>
                                   <asp:Panel ID = "PanelTransfer" runat = "server" Visible = "false">
                                        <div class="formList-detail">
                                               <table>
                                                    <tr>
                                                        <td width="130px">
                                                             <asp:Label ID="Label6" runat="server" CssClass="font-label" 
                                                                 Font-Bold="false" Text="เลขที่หนังสืออ้างอิงจากต้นทาง : " />
                                                        </td>
                                                        <td>
                                                            <telerik:RadTextBox runat = "server" ID ="txtTranRefNo" />
                                                        </td>
                                                     </tr>
                                               </table>
                                        </div>
                                        <div class="formList-detail">
                                           <table>
                                                 <tr>
                                                    <td valign="top" width="130px">
                                                        <asp:Label CssClass="font-label" runat = "server" 
                                                            ID= "Label5" Text = "สถานที่ต้นทาง           : " Font-Bold="false"/>
                                                    </td>
                                                    <td>
                                                        <telerik:RadTextBox runat = "server" ID ="txtFromTransfer" />
                                                    </td>  
                                                 </tr>
                                           </table>
                                        </div>
                                   </asp:Panel>
                            </asp:Panel>
                    </div>
                </div> 
                </telerik:RadPageView>   
                <telerik:RadPageView ID="RadPageView2" runat="server">             
                    <asp:Panel ID="PanelReceiveItem" runat="server">
                        <div class="formList-detail">
                           <table>
                                <tr>
                                    <td width="130px">
                                         <asp:Label ID="Label7" runat="server" CssClass="font-label" Font-Bold="false" Text="เลือกรายการพัสดุ : " />
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="cmbDnItem" runat="server" 
                                            AllowCustomText="true" EmptyMessage="< พิมพ์ที่นี้เพื่อค้นหา >" 
                                            EnableLoadOnDemand="true" EnableVirtualScrolling="true" Height="230px" 
                                            HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                            OnClientTextChange="onTextChangeGeneral" 
                                            OnItemsRequested="cmbDnItem_ItemsRequested"                                                                         
                                            ShowDropDownOnTextboxClick="true" 
                                            ShowMoreResultsBox="true"                  
                                            Width="250px">
                                            <HeaderTemplate>
                                                <table cellpadding="0" cellspacing="0" class="font-label">
                                                    <tr>
                                                        <td align="center" width="100px"><b>เลขอ้างอิงรายการพัสดุ</b></td>
                                                        <td align="center" width="150px"><b>ชื่อพัสดุ</b></td>
                                                    </tr>
                                                </table>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:Table ID="tableDnItem" runat="server" CellPadding="0" 
                                                    CellSpacing="0" CssClass="font-label">
                                                </asp:Table>
                                            </ItemTemplate>
                                    </telerik:RadComboBox>
                                    </td>
                                 </tr>
                           </table>
                        </div>
                        <div class="formList-detail">
                           <table>
                                 <tr>
                                    <td valign="top" width="130px">
                                        <asp:Label CssClass="font-label" runat = "server" 
                                            ID= "Label9" Text = "จำนวนรับ           : " Font-Bold="false"/>
                                    </td>
                                    <td>
                                        <telerik:RadTextBox runat = "server" ID ="txtQuantity" />
                                    </td>  
                                 </tr>
                           </table>
                        </div>
                        <div class="formList-detail">
                           <table>
                                 <tr>
                                    <td valign="top" width="130px">
                                        <asp:Label CssClass="font-label" runat = "server" 
                                            ID= "Label10" Text = "ราคาต่อหน่วย           : " Font-Bold="false"/>
                                    </td>
                                    <td>
                                        <telerik:RadTextBox runat = "server" ID ="txtUnitPrice" />
                                    </td>  
                                 </tr>
                           </table>
                        </div>
                        <div class="formList-detail">
                           <table>
                                 <tr>
                                    <td valign="top" width="130px">
                                        <asp:Label CssClass="font-label" runat = "server" 
                                            ID= "Label11" Text = "หมายเลข Lot วัสดุ           : " Font-Bold="false"/>
                                    </td>
                                    <td>
                                        <telerik:RadTextBox runat = "server" ID ="txtLotNo" />
                                    </td>  
                                 </tr>
                           </table>
                        </div>
                        <asp:Panel ID="PanelDP" Visible = "false" runat="server" CssClass="contentPaneDiv" Height="420px" ScrollBars="Auto"> 
                            <div class="formList-detail">                                            
                                <table>
                                    <tr>
                                        <td width="130px">
                                             <asp:Label CssClass="font-label" runat = "server" ID= "Label4" Text = "ประเภทค่าเสื่อม   : " Font-Bold ="false" />
                                        </td>
                                        <td>
                                            <telerik:RadComboBox ID="cmbDpType" runat="server" 
                                                AllowCustomText="true" EmptyMessage="< รายการประเภทค่าเสื่อม >" 
                                                EnableLoadOnDemand="true" EnableVirtualScrolling="true" Height="230px" 
                                                HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                                OnClientTextChange="onTextChangeGeneral" 
                                                OnItemsRequested="cmbDpType_ItemsRequested"                                                                         
                                                ShowDropDownOnTextboxClick="true" 
                                                ShowMoreResultsBox="true" 
                                                Width="450px">
                                                <HeaderTemplate>
                                                    <table cellpadding="0" cellspacing="0" class="font-label">
                                                        <tr>
                                                            <td align="center" width="100px"><b>รหัส</b></td>
                                                            <td align="center" width="350px"><b>ชื่อประเภทค่าเสื่อม</b></td>                            
                                                        </tr>
                                                    </table>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:Table ID="tableDpType" runat="server" CellPadding="0" 
                                                        CellSpacing="0" CssClass="font-label">
                                                    </asp:Table>
                                                </ItemTemplate>
                                            </telerik:RadComboBox>
                                        </td>
                                    </tr>
                                </table>                                           
                            </div>
                            <div class="formList-detail">
                                <table>
                                 <tr>
                                    <td width="130px" >
                                         <asp:Label CssClass="font-label" runat = "server" ID= "lblDeprecationType" Text = "ประเภทค่าเสื่อม : " Font-Bold ="false" />
                                    </td>
                                    <td>
                                       <fieldset>
                                        <asp:RadioButtonList CssClass="font-label" 
                                            ID="rbDepre" AutoPostBack="True" runat="server" 
                                            RepeatDirection="Horizontal" 
                                            RepeatLayout="Flow" Width="500px" >
                                            <asp:ListItem Selected="True" Value="0">ค่าเสื่อมต่ำกว่าเกณฑ์</asp:ListItem>
                                            <asp:ListItem Value="1" >ค่าเสื่อมสูงกว่าเกณฑ์</asp:ListItem>                                                                
                                        </asp:RadioButtonList>                                                           
                                       </fieldset> 
                                    </td>
                                 </tr>
                           </table>
                        </div>
                      </asp:Panel>
                         <div class="formList-detail">
                           <table>
                                 <tr>
                                    <td width="130px">
                                         <asp:Label CssClass="font-label" runat = "server" ID= "lblExpireDate" Text = "วันที่หมดอายุการใช้งาน           : " Font-Bold ="false" />
                                    </td>
                                    <td>
                                        <telerik:RadMaskedTextBox ID="txtExpireDate" runat="server" Mask=" ##/##/####" SelectionOnFocus="SelectAll" TextWithLiterals=" //" Width="75px">
                                        </telerik:RadMaskedTextBox>
                                    </td>
                                    <td>
                                          <asp:LinkButton ID="LinkButton2" runat="server" CssClass="LinkButton">
                                                <img alt="" src="../Image/Icon/Calendar.gif" style="border:0px;vertical-align:middle;" />
                                          </asp:LinkButton>
                                          <telerik:RadToolTip ID="ToolTipExpireDate" runat="server" Animation="None" HideEvent="LeaveToolTip" Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" 
                                            TargetControlID="LinkButton2" Modal="true">
                                                <telerik:RadCalendar 
                                                    id="CalendarExpireDate" 
                                                    runat="server" 
                                                    TitleFormat="MMMM yyyy" 
                                                    EnableMultiSelect="false" 
                                                    UseRowHeadersAsSelectors="false" 
                                                    UseColumnHeadersAsSelectors="false" 
                                                    DayCellToolTipFormat="dddd, dd MMMM, yyyy" 
                                                    NavigationPrevToolTip="เดือนก่อนหน้า" 
                                                    NavigationNextToolTip="เดือนถัดไป" 
                                                    FastNavigationNextToolTip="3 เดือนถัดไป" 
                                                    FastNavigationPrevToolTip="3 เดือนก่อนหน้า">
                                                    <ClientEvents OnDateClick="OnExpireDateClick" OnCalendarViewChanged="OnCalendarExpireViewChanged"></ClientEvents>
                                                    <FastNavigationSettings EnableTodayButtonSelection="true" TodayButtonCaption="ไปที่วันนี้" OkButtonCaption="เปลี่ยน" CancelButtonCaption="ยกเลิก" />
                                                </telerik:RadCalendar>
                                          </telerik:RadToolTip>
                                            &nbsp;<label id="Label3" runat="server"><font color="red">*</font></label>
                                    </td>
                                 </tr>
                           </table>
                        </div>
                        <div class="formList-detail">
                               <table>
                                     <tr>
                                        <td width="130px">
                                            <asp:Label CssClass="font-label" runat = "server" 
                                                ID= "Label13" Text = "คำอธิบาย(ยี่ห้อ ขนาด ลักษณะ) : " Font-Bold ="false" />
                                        </td>
                                        <td>
                                            <telerik:RadTextBox runat = "server" ID ="txtDescr" ToolTip="กรอกคำอธิบาย(ยี่ห้อ ขนาด ลักษณะ)เพิ่มเติม" TextMode="MultiLine" Width ="700px" Height ="99px"/>
                                        </td>
                                     </tr>
                               </table>
                         </div> 
                         <div class="formList-detail">
                               <table>
                                     <tr>
                                        <td width="130px">
                                            <asp:Label CssClass="font-label" runat = "server" 
                                                ID= "Label14" Text = "รายการสิ่งที่มาด้วยกับพัสดุ : " Font-Bold ="false" />
                                        </td>
                                        <td>
                                            <telerik:RadTextBox runat = "server" ID ="txtAccessary" ToolTip="กรอกรายการสิ่งที่มาด้วยกับพัสดุ" TextMode="MultiLine" Width ="700px" Height ="99px"/>
                                        </td>
                                     </tr>
                               </table>
                         </div> 
                         <div class="formList-detail">
                               <table>
                                     <tr>
                                        <td width="130px">
                                            <asp:Label CssClass="font-label" runat = "server" ID= "lblRemark" Text = "รายละเอียดเพิ่มเติม : " Font-Bold ="false" />
                                        </td>
                                        <td>
                                            <telerik:RadTextBox runat = "server" ID ="txtRemark" ToolTip="กรอกรายละเอียดเพิ่มเติม" TextMode="MultiLine" Width ="700px" Height ="99px"/>
                                        </td>
                                     </tr>
                               </table>
                         </div>
                          <fieldset>
                            <legend><asp:Label CssClass="font-label" ID="lblInsurance" runat ="server" Text ="ภาพประกอบ" Font-Bold="true" /></legend>
                                <div class="formList-detail">
                                   <table>
                                         <tr>
                                            <td >
                                                <asp:Label CssClass="font-label" runat = "server" 
                                                    ID= "lblGaranteeNumber" Text = "ภาพประกอบ 1 : " Font-Bold ="false" />
                                            </td>
                                            <td>
                                                <telerik:RadTextBox runat = "server" ID ="txtPicture1" />
                                            </td>
                                         </tr>                                         
                                   </table>
                                </div>
                                <div class="formList-detail">
                                   <table>
                                         <tr>
                                            <td >
                                                <asp:Label CssClass="font-label" runat = "server" 
                                                    ID= "Label1" Text = "ภาพประกอบ 2 : " Font-Bold ="false" />
                                            </td>
                                            <td>
                                                <telerik:RadTextBox runat = "server" ID ="txtPicture2" />
                                            </td>
                                         </tr>                                         
                                   </table>
                                </div>
                                <div class="formList-detail">
                                   <table>
                                         <tr>
                                            <td >
                                                <asp:Label CssClass="font-label" runat = "server" 
                                                    ID= "Label12" Text = "ภาพประกอบ3 : " Font-Bold ="false" />
                                            </td>
                                            <td>
                                                <telerik:RadTextBox runat = "server" ID ="txtPicture3" />
                                            </td>
                                         </tr>                                         
                                   </table>
                                </div>
                            </fieldset>           
              
                    </asp:Panel>
                </telerik:RadPageView>
            </telerik:RadMultiPage>
        </div>
        </form>
    </body>
</html>
